package com.eedi.framework.permission.enums;

import com.eedi.framework.common.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * 菜单类型枚举类
 *
 * @author 永聚长青源码
 */
@Getter
@AllArgsConstructor
@ToString
public enum SysMenuTypeEnum implements BaseEnum<Integer,String> {
    // 目录
    DIR(1,"目录"),
    // 菜单
    MENU(2,"菜单"),
    // 按钮
    BUTTON(3,"按钮")
    ;

    /**
     * 类型
     */
    private final Integer code;

    private final String desc;

    @Override
    public String title() {
        return "菜单类型";
    }
}
